/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.songlin.houxin.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlin.pig.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;

/**
 * 渠道表
 *
 * @author pig code generator
 * @date 2022-03-05 23:31:25
 */
@Data
@TableName("t_channel")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "渠道表")
public class Channel extends BaseEntity {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 父级id
     */
    @ApiModelProperty(value = "父级id")
    private Integer parentId;

    /**
     * 渠道名称
     */
    @ApiModelProperty(value = "渠道名称")
    private String name;

    /**
     * 渠道级别
     */
    @ApiModelProperty(value = "渠道级别")
    private Integer level;

    @ApiModelProperty(value = "是否被删除，0:未删除;1已删除")
    @TableField(value = "is_delete", jdbcType = JdbcType.TINYINT)
    private Integer isDelete;
}
